package oa.hleast.xswl.service.pms;

import com.baomidou.mybatisplus.extension.service.IService;
import oa.hleast.xswl.common.enums.CouponSourceEnum;
import oa.hleast.xswl.pojo.domain.pms.PmsUserCoupon;
import oa.hleast.xswl.pojo.dto.CommonResponse;

import java.util.List;

/**
 * @author: 00209
 * @date: 2021-06-10 17:11:34
 * @description: 用户优惠券表(PmsUserCoupon)接口
 */
public interface PmsUserCouponService extends IService<PmsUserCoupon> {
    Boolean receive(Long couponId, Long userId, CouponSourceEnum couponSourceEnum);

    List<PmsUserCoupon> bestList(Long totalPrice);

    PmsUserCoupon getByUserCouponId(Long userCouponId);

    void useUserCoupon(Long userCouponId);
}
